import akshare as ak

#symbol = "600519"
symbol = "002594"

def get_symbol_with_prefix(symbol:str):
    if symbol.startswith(("60", "688")):
        return "sh" + symbol

    elif symbol.startswith(("00", "30")):
        return "sz" + symbol
    
    return symbol
















# info = ak.stock_individual_info_em(symbol=symbol)
# print(info)






















indicator = ak.stock_market_pb_lg(symbol)
print(indicator)



















# abstract = ak.stock_financial_abstract_ths(symbol=symbol)
# print(abstract)

# indicators = ak.stock_financial_abstract(symbol=symbol)
# print(indicators)

# shareholders = ak.stock_shareholder_change_ths(symbol=symbol)
# print(shareholders)

# top10 = ak.stock_gdfx_top_10_em(get_symbol_with_prefix(symbol))
# print(top10)

# dividends = ak.stock_dividend_cninfo(symbol=symbol)
# print(dividends)
